 <table class="layui-table">
        <colgroup>
            <col width="80">
            <col width="100">
            <col >
            <col >
            <col >
            <col >
            <col >
            <col >
            <col >
            <col >
            <col >
            <col >
            <col width="550">

        </colgroup>
        <thead>
        <tr>
            <th>序号</th>
            <th>姓名</th>
            <th>报名日期</th>
            <th>驾照</th>
            <th>付款状态</th>
            <th>收据</th>
            <th>体检表</th>
            <th>电话</th>
            <th>网点</th>
            <th>介绍人</th>
            <th>教练员</th>
            <th>状态</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>




        <?php
        for ($i = 0; $i < $detailnum; $i++) {
            ?>


            <!--//查看这条信息有无修改申请，有的话就变色，提示修改中-->
            <? $applymodify=select_one_line_all_items($table_Prefix."member","sid='".$detail[$i]['nid']."' and applystatus='申请修改'") ;?>


            <tr <?if($applymodify['nid']){echo "style='color:red'";$status="审核中";}else{$status="正常";}?>>
                <td><?echo $i+1+$plate['page_list_num']*($nowpageid-1) ?></td>
                <td><?echo $detail[$i]['name']?></td>
                <td><?echo substr($detail[$i]['date'],0,10)?></td>
                <td><?echo $detail[$i]['license']?></td>
                <td>
	  <span
          <?if($detail[$i]['status']=="未付")
          {
              echo "style='background-color:#ff0000'";
          }?>
          >
	  <?echo $detail[$i]['status']?></span></td>



                <td><?if($detail[$i]['receipt']=="已生成"){echo "已生成";}else{echo "<span style='color:red'>未生成<span></span>";} ?></td>



                <? $count_healthform=count_by_item($table_Prefix."healthform","masterid='".$detail[$i]['nid']."'");?>

                <td><?if($count_healthform>0){echo "已提交";}else{echo "<span style='color:red'>未提交<span></span>";} ?></td>



                <td><?echo $detail[$i]['phone']?></td>
                <?$department=select_one_line_all_items($table_Prefix."department","nid = '".$detail[$i]['departmentid']."'");?>
                <?$agent=select_one_line_all_items($table_Prefix."employee","nid = '".$detail[$i]['agentid']."'");?>
                <?$coach=select_one_line_all_items($table_Prefix."employee","nid = '".$detail[$i]['coachid']."'");?>
                <td><?echo $department['name'] ?></td>
                <td><?echo $agent['name'] ?></td>
                <td><?echo $coach['name'] ?></td>
                <td><?echo $status?></td>
                <td>



                    <?if($_SESSION['mid']!="admin"){?>


                    <? if($applymodify['nid']){ ;?>
                    <a href="../<? echo $system_part ?>/detail-edit.php?nav-itemed=<?echo $system_part?>&nid=<? echo $applymodify['nid']?>" class="layui-btn layui-btn-primary layui-btn-small" >
                        <i class="layui-icon">&#xe642;</i>修改

                        <?;}else{?>

                        <a href="../<? echo $system_part ?>/detail-add-edit.php?nav-itemed=<?echo $system_part?>&nid=<? echo $detail[$i]['nid']?>" class="layui-btn layui-btn-primary layui-btn-small" >
                            <i class="layui-icon">&#xe642;</i>修改
                            <?}?>

                        </a>
                        <?}else{?>
                            <a href="../<? echo $system_part ?>/detail-edit.php?nav-itemed=<?echo $system_part?>&nid=<? echo $detail[$i]['nid']?>" class="layui-btn layui-btn-primary layui-btn-small" >
                                <i class="layui-icon">&#xe642;</i>修改
                            </a>

                        <?}?>

                        <a href="../<? echo $system_part ?>/detail-statistic.php?nav-itemed=<?echo $system_part?>&nid=<? echo $detail[$i]['nid']?>" class="layui-btn layui-btn-primary layui-btn-small" >信息</a>


                        <?if(($detail[$i]['status']=="已收款")&&($detail[$i]['receipt']=="未生成")){ ?>
                            <a href="../receipt/detail-add.php?nav-itemed=receipt&nid=<? echo $detail[$i]['nid']?>&type=xuefei" class="layui-btn layui-btn-primary layui-btn-small" target="_blank">生成收据</a>
                        <?}?>


                        <?if($count_healthform<=0){ ?>
                            <a href="../healthform/detail-add.php?nav-itemed=member&nid=<? echo $detail[$i]['nid']?>" class="layui-btn layui-btn-primary layui-btn-small">体检表</a>
                        <? } ?>

                        <? $applymodify=count_by_item($table_Prefix."member","sid = '".$detail[$i]['nid']."' and applystatus = '申请修改'")?>


                        <?if($_SESSION['mid']=="admin"){?>
                            <a style="display: none" href="javascript:void(0)" onclick="popupBox(<?php echo $detail[$i]['nid']?>)" class="delete layui-btn layui-btn-primary layui-btn-small" > <i class="layui-icon">&#xe640;</i> 删除 </a>


                            <?if($applymodify){?>
                                <a href="../<? echo $system_part ?>/detail-verify.php?nav-itemed=<?echo $system_part?>&nid=<? echo $detail[$i]['nid']?>" class="layui-btn layui-btn-primary layui-btn-small">审核</a>
                            <?}?>

                        <?}?>


                </td>
            </tr>
            <?php

        }
        ?>


        </tbody>
    </table>



    <?php

    if ($detailnum == 0) {
        echo " 暂无数据  ";
    }

    ?>
